package com.ourhours.message.common;

/**
 * Description:RedisKey.
 *
 * @author yudong.chang
 * @version V1.0
 * @since 2017/12/13
 */
public enum RedisKey {

    MESSAGE_SUPPLIER_INFO("OH_MESSAGE:MESSAGE_SUPPLIER_INFO_",31536000),
    MESSAGE_TEMPLATE_INFO_BY_ID("OH_MESSAGE:MESSAGE_TEMPLATE_INFO_BY_ID_",31536000),
    MESSAGE_TEMPLATE_INFO_BY_TYPE("OH_MESSAGE:MESSAGE_TEMPLATE_INFO_BY_TYPE_",31536000);

    private String key;

    private Integer term;

    RedisKey(String key, Integer term) {
        this.key = key;
        this.term = term;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getTerm() {
        return term;
    }

    public void setTerm(Integer term) {
        this.term = term;
    }
}
